package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.BusinessMonth;
import cn.stylefeng.guns.sys.modular.system.model.params.BusinessMonthParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BusinessMonthResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangge
 * @since 2021-06-03
 */
public interface BusinessMonthService extends IService<BusinessMonth> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2021-06-03
     */
    void add(BusinessMonthParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2021-06-03
     */
    void delete(BusinessMonthParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2021-06-03
     */
    void update(BusinessMonthParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-06-03
     */
    BusinessMonthResult findBySpec(BusinessMonthParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2021-06-03
     */
    List<BusinessMonthResult> findListBySpec(BusinessMonthParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-06-03
     */
     LayuiPageInfo findPageBySpec(BusinessMonthParam param);

    void insertData(String month,List<Map<String, Object>> dataList);
}
